mysql -u root -p$MYSQL_ROOT_PASSWORD <<EOSQL
install plugin rpl_semi_sync_master soname 'semisync_master.so';
SET GLOBAL rpl_semi_sync_master_enabled=1;
SET GLOBAL rpl_semi_sync_master_timeout=1000;
EOSQL